/*
 * Created by JFormDesigner on Thu Mar 26 16:54:15 BRT 2009
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * @author felipe ff
 */
public class SlotWindow extends JFrame {
	public SlotWindow() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel3 = new JPanel();
		label1 = new JLabel();
		nameTextField = new JTextField();
		label5 = new JLabel();
		depthSlotSpinner = new JSpinner();
		label6 = new JLabel();
		d1SlotSpinner = new JSpinner();
		label7 = new JLabel();
		d2SlotSpinner = new JSpinner();
		label2 = new JLabel();
		xSlotSpinner = new JSpinner();
		label3 = new JLabel();
		ySlotSpinner = new JSpinner();
		label4 = new JLabel();
		zSlotSpinner = new JSpinner();
		label8 = new JLabel();
		toleranceSlotSpinner = new JSpinner();
		label10 = new JLabel();
		rotationSpinner = new JSpinner();
		slotSplitPanel = new JSplitPane();
		submitButton = new JButton();
		cancelButton = new JButton();
		helpButton = new JButton();
		statusLabel = new JLabel();

		//======== this ========
		setTitle("Create a new Slot");
		Container contentPane = getContentPane();

		//======== panel3 ========
		{
			panel3.setLayout(new GridBagLayout());
			((GridBagLayout)panel3.getLayout()).columnWidths = new int[] {0, 55, 100, 0};
			((GridBagLayout)panel3.getLayout()).rowHeights = new int[] {0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel3.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
			((GridBagLayout)panel3.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

			//---- label1 ----
			label1.setText("Name:");
			panel3.add(label1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(nameTextField, new GridBagConstraints(1, 0, 2, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 0), 0, 0));

			//---- label5 ----
			label5.setText("depth:");
			panel3.add(label5, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(depthSlotSpinner, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label6 ----
			label6.setText("d1:");
			panel3.add(label6, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(d1SlotSpinner, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label7 ----
			label7.setText("d2");
			panel3.add(label7, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(d2SlotSpinner, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label2 ----
			label2.setText("position X:");
			panel3.add(label2, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(xSlotSpinner, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label3 ----
			label3.setText("position Y:");
			panel3.add(label3, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(ySlotSpinner, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label4 ----
			label4.setText("position Z:");
			panel3.add(label4, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(zSlotSpinner, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label8 ----
			label8.setText("+/- (um)");
			panel3.add(label8, new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));
			panel3.add(toleranceSlotSpinner, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 5), 0, 0));

			//---- label10 ----
			label10.setText("rotation:");
			panel3.add(label10, new GridBagConstraints(0, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 5), 0, 0));

			//---- rotationSpinner ----
			rotationSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 1.0));
			panel3.add(rotationSpinner, new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 5), 0, 0));
		}

		//======== slotSplitPanel ========
		{
			slotSplitPanel.setOrientation(JSplitPane.VERTICAL_SPLIT);
		}

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- helpButton ----
		helpButton.setText("Help");

		//---- statusLabel ----
		statusLabel.setText("Status:");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
					.addGap(31, 31, 31)
					.addComponent(panel3, GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(slotSplitPanel, GroupLayout.PREFERRED_SIZE, 330, GroupLayout.PREFERRED_SIZE)
					.addGap(19, 19, 19))
				.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(statusLabel)
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 293, Short.MAX_VALUE)
					.addComponent(helpButton)
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addComponent(submitButton, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)
					.addGap(40, 40, 40))
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(31, 31, 31)
							.addComponent(slotSplitPanel, GroupLayout.PREFERRED_SIZE, 426, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
							.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
								.addComponent(submitButton)
								.addComponent(cancelButton)
								.addComponent(helpButton)
								.addComponent(statusLabel)))
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(panel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(15, Short.MAX_VALUE))
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	protected JPanel panel3;
	private JLabel label1;
	public JTextField nameTextField;
	protected JLabel label5;
	protected JSpinner depthSlotSpinner;
	protected JLabel label6;
	protected JSpinner d1SlotSpinner;
	protected JLabel label7;
	protected JSpinner d2SlotSpinner;
	protected JLabel label2;
	protected JSpinner xSlotSpinner;
	protected JLabel label3;
	protected JSpinner ySlotSpinner;
	protected JLabel label4;
	protected JSpinner zSlotSpinner;
	private JLabel label8;
	protected JSpinner toleranceSlotSpinner;
	private JLabel label10;
	protected JSpinner rotationSpinner;
	protected JSplitPane slotSplitPanel;
	protected JButton submitButton;
	protected JButton cancelButton;
	public JButton helpButton;
	public JLabel statusLabel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
